using System.Web.UI;

using QuickDev.Localization;

[assembly: TagPrefix("QuickDev.ServerControls", "QuickDev")]
namespace QuickDev.ServerControls
{

    [ToolboxData( "<{0}:RequiredFieldValidator ID=\"RequiredFieldValidatorId\" runat=\"server\" />" )]
    public class RequiredFieldValidator : System.Web.UI.WebControls.RequiredFieldValidator
    {

        protected override void Render( HtmlTextWriter writer )
        {
            if ( !string.IsNullOrEmpty( this.ID ) )
            {
                this.ErrorMessage = LocalizationUtility.GetText( this.ID );
            }
            base.Render( writer );
        }

    }
}
